package club.ljwang.dao;


import club.ljwang.pojo.HotSetmeal;
import club.ljwang.pojo.Order;
import club.ljwang.pojo.OrderInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    public void add(Order order);

    public List<Order> findByCondition(Order order);

    public Map findById4Detail(Integer id);

    public Integer findOrderCountByDate(String date);

    public Integer findOrderCountAfterDate(String date);

    public Integer findVisitsCountByDate(String date);

    public Integer findVisitsCountAfterDate(String date);

    public List<HotSetmeal> findHotSetmeal();

    Integer findOrderCountByBetweenDate(@Param("start") String start, @Param("end") String end);

    Integer findVisitsCountByBetweenDate(@Param("start") String start, @Param("end") String end);


    OrderInfo findById(Integer id);

    void updatePayNo(@Param("out_trade_no") String out_trade_no,@Param("orderId") Integer orderId);

    void updatePayStatus(String out_trade_no);
}
